<?php
include ("include/include.php.inc");
html_header("Administrator");
list($status, $user) = auth_get_status();

 
if($status == AUTH_LOGGED){

if(license_has($user, "admin")){
$username=$user['username'];
$username=strtoupper($username);
echo "<p><h2><center> Welcome admin $username</center></br></p></h2>\n";
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n";
echo "<p><h2><center><a href=\"support_per.php\">Users Administration</h2></center></a></p>\n"; 

echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 
echo "<br>";
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n"; 

echo "<p><h2><center><a href=\"assign_tic.php\">Assign Ticket</h2></a></center></p>\n"; 

echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 

echo "\n";
html_footer();
die();
}
else{
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n";
echo "<h2><center>You do not have the required permissions\n</center></h2>";
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 

echo "\n";
html_footer();
die();
}}
else{
echo "<div class='box'>\n"; 
echo " <div class='boxtop'><div></div></div>\n"; 
echo "  <div class='boxcontent'>\n";
echo "<center><h2>You must log in First</h2></center>";
echo "  </div>\n"; 
echo " <div class='boxbottom'><div></div></div>\n"; 
echo "</div>\n"; 

echo "\n";
html_footer();
}
?>